<div class="invoice p-1 mb-3">
    <div class="row invoice-info">
        <div class="col-sm-6 invoice-col mt-1">
            <b>设备名称：</b> {{ $machine_info -> machine_name }}
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>设备状态：</b>
            <span class="info-box-icon {{ $machine_info->online_status == 1 ? 'text-success' : 'text-danger' }}">
                {{ $machine_info->online_status == 1 ? '在线' : '离线' }}
            </span>
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>设备编号：</b> {{ $machine_info -> machine_code }}
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>机器编号：</b> {{ $machine_info -> device_code }}
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>注册时间：</b> {{ $machine_info -> created_at }}
        </div>
        <div class="col-sm-6 invoice-col mt-1">
            <b>离线时间：</b> {{ $machine_info -> last_online_time }}
        </div>
        <div class="col-sm-12 invoice-col mt-1">
            <b>设备地址：</b> {{ $machine_info -> address }}
        </div>
    </div>
    <div class="row mt-3">
        <div class="col-12 table-responsive">
            <table class="table table-striped center">
                <thead>
                <tr>
                    <th>#</th>
                    <th>名称</th>
                    <th>售价</th>
                    <th>成本</th>
                    <th>库存</th>
                </tr>
                </thead>
                <tbody>
                @foreach($goods_info as $goods)
                    <tr>
                        <td>{{ $goods['skuId'] }}</td>
                        <td>{{ $goods['skuSubject'] }}</td>
                        <td>¥ {{ $goods['goodsPrice'] }}</td>
                        <td>¥ {{ $goods['originalPrice'] }}</td>
                        <td>{{ $goods['goodsStock'] }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
